package dfbz.homework1;

public class Test14 {
    public static void main(String[] args) {
        int[] arr={95, 92, 75, 56, 98, 71, 80, 58, 91, 91};
        int avg=getAvg(arr);
        System.out.println("平均分:"+avg);
    }
    public static int getAvg(int[] arr){
        int sum=0;
        for (int i = 0; i <arr.length ; i++) {
            sum+=arr[i];
        }
        return sum/arr.length;
    }
}
